﻿﻿//------------------------------------------------------------------------------
// <copyright file="Common.cs" company="Microsoft">
//
//      Copyright 2013 Microsoft Corporation 
//
//      Licensed under the Microsoft Public License (Ms-PL). 
//      You may not use this file except in compliance with the License.
//
//      Unless required by applicable law or agreed to in writing, software 
//      distributed under the License is distributed on an "AS IS" BASIS,
//      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
//      See the License for the specific language governing permissions and 
//      limitations under the License. 
//
// </copyright>
﻿//------------------------------------------------------------------------------

namespace MyOpenXmlBorders
{
    using DocumentFormat.OpenXml.Spreadsheet;

    public static class MyBorders
    {
        public static Border VerticalLeft
        {
            get
            {
                return new Border()
                {
                    LeftBorder = new LeftBorder()
                    {
                        Style = BorderStyleValues.Thin,
                        Color = new Color { Auto = true }
                    },
                    RightBorder = new RightBorder(),
                    TopBorder = new TopBorder(),                                                                                                                                                    
                    BottomBorder = new BottomBorder(),
                    DiagonalBorder = new DiagonalBorder()
                };
            }
        }

        public static Border DoubleTop
        {
            get
            {
                return new Border()
                {
                    LeftBorder = new LeftBorder(),
                    RightBorder = new RightBorder(),
                    TopBorder = new TopBorder()
                    {
                        Style = BorderStyleValues.Double,
                        Color = new Color { Auto = true }
                    },
                    BottomBorder = new BottomBorder(),
                    DiagonalBorder = new DiagonalBorder()
                };
            }
        }
    }
}
